package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学习笔记主表
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class LearnDiary extends Model<LearnDiary> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 日记内容
     */
    private String content;

    /**
     * 作者ID
     */
    private String authorId;

    /**
     * 作者名称
     */
    private String authorName;

    /**
     * 作者头像
     */
    private String authorIcon;

    /**
     * 作者手机号码
     */
    private String authorMobile;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 图片
     */
    private String imageUrl;

    /**
     * 视频
     */
    private String videoUrl;

    /**
     * 0教练 1会员
     */
    private Integer authorType;

    /**
     * 门店id
     */
    private String shopId;

    /**
     * 会员id
     */
    private String userId;

    /**
     * 日记时间
     */
    private Date diaryTime;

    /**
     * 俱乐部id
     */
    private String clubId;

    /**
     * 0-禁用 1-启用
     */
    private Integer status;


    public static final String ID = "id";

    public static final String CONTENT = "content";

    public static final String AUTHOR_ID = "author_id";

    public static final String AUTHOR_NAME = "author_name";

    public static final String AUTHOR_ICON = "author_icon";

    public static final String AUTHOR_MOBILE = "author_mobile";

    public static final String CREATE_TIME = "create_time";

    public static final String IMAGE_URL = "image_url";

    public static final String VIDEO_URL = "video_url";

    public static final String AUTHOR_TYPE = "author_type";

    public static final String SHOP_ID = "shop_id";

    public static final String USER_ID = "user_id";

    public static final String DIARY_TIME = "diary_time";

    public static final String CLUB_ID = "club_id";

    public static final String STATUS = "status";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
